import { My } from '../index'
import MyStore from '@/stores/modules/MyStore';
const store = MyStore();

export async function Info() {
    try {
        const response = await My.Info();
        const info = response.data.data;

        await store.Info(info);
    } catch (error) {
        console.log(error);
    }
}

export async function Update(data) {
    try {
        await My.Update(data);
    } catch (error) {
        console.log(error);
    }
}

export async function Reset(data) {
    try {
        await My.Reset(data);
    } catch (error) {
        console.log(error);
    }
}